blktap2: only open driver stack once
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 9 Nov 2009 19:40:48 +0000 (19:40 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 9 Nov 2009 19:40:48 +0000 (19:40 +0000)
Currently blktap2 opens a driver stack, closes it, and re-opens
it. This causes problems with our remus driver: the primary may
connect to the backup in between the first and second open.

This is a temporary fix.

Signed-off-by: Ryan O'Connor <rjo@cs.ubc.ca>
tools/blktap2/drivers/tapdisk-vbd.c

index 6aabfc22e4e4c8898253dbdb7253f44125847746..e53cede879f29954ebba7b3c9d0f970ffafda447 100644 (file)
@@ -1560,9 +1560,11 @@ tapdisk_vbd_issue_request(td_vbd_t *vbd, td_vbd_request_t *vreq)
        gettimeofday(&vreq->last_try, NULL);
        tapdisk_vbd_move_request(vreq, &vbd->pending_requests);
 
+#if 0
        err = tapdisk_vbd_check_queue(vbd);
        if (err)
                goto fail;
+#endif
 
        err = tapdisk_image_check_ring_request(image, req);
        if (err)